<?php
$tittleText = '当前位置：SNEAKER CUSTOM / ' . $userMsg->Name . ' 的个人主页 / Ta的本领';
require("{$CfgPara->root}/view/web/tittle_back_bar.web.v.php");
?>
<div style="border: 1px solid #DEDEDE; margin: 0px 15px">
    <div style="height: 43px;padding: 10px 30px; margin-bottom: 30px;">
        <?php
        if (isset($_SESSION['user_id']) && $_SESSION['user_id'] == $userMsg->Id) {
            ?>
            <a class="am-fr am-icon am-icon-ellipsis-h am-icon-fw web-main-color"
               data-forward="controller=user_field&user_field_manage=1" onclick="act_content(this)"
            ></a>
        <?php } ?>
    </div>
    <div class="am-g">
        <div class="am-u-sm-3" style="text-align:center;padding-top:15px">
            <div class="web-tittle-color am-text-lg" style="margin-top: -15px; margin-bottom: 30px;">
                <b>本领</b>
            </div>
            <img class="am-circle" alt="" src="<?= $userMsg->Avatar ?>" width="50" height="50"/>
            <div style="padding-top:5px">
                <b class="web-main-color am-text-default"><?= $userMsg->Name ?></b><br/>
                <span class="am-text-xs web-gray-color">擅长的风格</span><br/>
            </div>
        </div>
        <div class="am-u-sm-8 am-u-end">
            <ul class="am-list">
                <?php foreach ($userField as $fieldValue) { ?>
                    <li style="padding:10px 10px 10px 5px">
                        <a data-forward="controller=user_field&user_id=<?= $userMsg->Id ?>&user_field_id=<?= $fieldValue->Id ?>"
                           onclick="act_content(this)">
                            <span class="am-list-item-hd web-main-color"><?= $fieldValue->FieldName ?></span>
                            <i class="am-icon-angle-right am-fr web-gray-color am-text-lg"></i>
                        </a>
                    </li>
                <?php } ?>
            </ul>
        </div>
    </div>
</div>
